package gcu.module.property_apply.dao.mapper;

import gcu.module.property_apply.daomain.PropertyApply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by haol on 2016/9/24.
 */
@Repository
public interface ApplyMapper {
      /*增加申请表*/
      void addApply(@Param("apply")PropertyApply apply);

      /*更新申请表*/
      void updateApply(@Param("apply")PropertyApply apply);

      /*更新申请表*/
      void setApplyIsRead(@Param("id")int id);

      /*更新申请表*/
      void deleteApply(@Param("id")int id);

      /*通过id查看申请表*/
      PropertyApply queryApplyById(@Param("id")int id);

      /*分页查找申请表*/
      List<PropertyApply> query(@Param("apply")PropertyApply apply, @Param("skip")int skip, @Param("size")int size);

      /*按需统计全部*/
      long count(@Param("apply")PropertyApply apply);

      List<PropertyApply> getNotHandle();
}
